package pers.elonnsu.springbootmall.model.dao;

import pers.elonnsu.springbootmall.model.pojo.Category;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    Category selectByName(String name);

    List<Category> selectAllCategories();

    List<Category> selectCategoriesByParentId(Integer parentId);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);
}